package cn.walls1717.mall.modules.pms.dto;

import cn.walls1717.mall.modules.pms.model.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.Valid;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 添加商品数据传输对象
 * @author walls1717
 * @version 0.1
 * @since 2022-04-23
 **/
@ApiModel(value = "productSaveParamDTO", description = "添加商品数据传输对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class ProductSaveParamDTO extends PmsProduct{
    @ApiModelProperty("会员价格")
    private List<PmsMemberPrice> memberPriceList;

    @ApiModelProperty("商品满减")
    private List<PmsProductFullReduction> productFullReductionList;

    @ApiModelProperty("商品阶梯价格")
    private List<PmsProductLadder> productLadderList;

    @ApiModelProperty("商品属性相关")
    private List<PmsProductAttributeValue> productAttributeValueList;

    @ApiModelProperty("商品sku库存信息")
    @Size(min = 1,message = "商品规格至少要有一项")
    @Valid
    private List<PmsSkuStock> skuStockList;
}
